<template>
	<view>
		<view class="navigationbar">
			<view  v-for="(item,index) in textlist"  :key="index"
				@click="switch_pages(index)">
				<b :class="{b:current==index}">{{item}}</b>
				<hr :class="{active:current==index}" v-if="current==index"/>
			</view>
		</view>
		<view v-if="current==0">
			<view class="leavetype">
				<text style="color: red;">*</text>
				<b><text>请假类型</text></b>
			</view>
			<view class="time">
				<view class="startTime">
					<text style="color: red;">*</text>
					<b><text>开始时间</text></b>
				</view>
				<hr class="line" />
				<view class="startTime">
					<text style="color: red;">*</text>
					<b><text>结束时间</text></b>
				</view>
			</view>
			<view class="leavedays">
				<view class="days">
					<text style="color: red;">*</text>
					<b><text>请假天数</text></b>
				</view>
				<textarea placeholder="请输入请假天数"></textarea>
			</view>
			<view class="reasonsforleave">
				<view class="reasons">
					<text style="color: red;">*</text>
					<b><text>请假事由</text></b>
					<textarea placeholder="请输入请假事由"></textarea>
				</view>
			</view>
			<view class="picture">
				<b><text>图片</text></b>
			</view>
			<view class="button">
				<button class="submit">提交</button>
			</view>
		</view>
		<view v-if="current==1">页面1</view>
		<view v-if="current==2">页面2</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				textlist: ['发起提交', '查看报表', '查看数据'],
				current: 0,
				dataTxtList: [],
				done: [],
				undone: []
			}
		},
		onLoad() {
		},
		methods: {
			switch_pages(index) {
				this.current = index;
			},
		}
	}
</script>

<style lang="scss">
	.navigationbar{
		width: 100%;
		height: 69rpx;
		background: #FFFFFF;
		display: flex;
		justify-content: space-around;
		line-height: 69rpx;
		text-align: center;
		padding-bottom:3px ;
		b{
			color: #747474;
		}
		.b{
			color: #050505;
		}
	}
	.active {
		width: 60%;
		height: 3px;
		border: 0;
		background-color: #109EF8;
		margin: 0 auto;
	}
	.leavetype{
		width: 100%;
		height: 86rpx;
		padding-left: 10rpx;
		line-height: 86rpx;
		background: #FFFFFF;
		margin-top:20rpx ;
	}
	.time{
		width: 100%;
		height: 174rpx;
		padding-left: 10rpx;
		background: #FFFFFF;
		margin-top:20rpx ;
		hr{
			width: 96%;
			height: 1px;
			border: 0;
			background-color: #EBEFF6;
			margin: 0 auto;
		};
		.startTime{
			height: 87rpx;
			line-height: 87rpx;
		}
	}
	.leavedays{
		width: 100%;
		height: 174rpx;
		padding-left: 10rpx;
		background: #FFFFFF;
		margin-top:20rpx ;
		.days{
			height: 87rpx;
			line-height: 87rpx;
		}
		textarea{
			width: 96%;
			height: 75rpx;
		}
	}
	.reasonsforleave{
		width: 100%;
		padding-left: 10rpx;
		height: 240rpx;
		background: #FFFFFF;
		margin-top:20rpx ;
		.reasons{
			height: 87rpx;
			line-height: 87rpx;
		}
		textarea{
			width: 96%;
			height: 140rpx;
		}
	}
	.picture{
		width: 100%;
		height: 90rpx;
		line-height: 90rpx;
		padding-left: 10rpx;
		background: #FFFFFF;
		margin-top:20rpx ;
	}
	.button{
		width: 750rpx;
		height: 80rpx;
		margin-top:100rpx ;

		.submit{
			width: 720rpx;
			height: 80rpx;
			color: #FFFFFF;
			background: #109EF8;
		};
	}
</style>
